<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数据权限</title>
    <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
    <link rel="stylesheet" href="/static/component/pear/css/pear.css"/>
    <link rel="stylesheet" href="/static/component/markdown/editor/editormd.min.css" />
    <script src="/static/component/layui/layui.js"></script>
    <script src="/static/component/pear/pear.js"></script>
    <script src="/static/component/pear/module/ruinuo/sortable.js"></script>
    <script src="/static/component/pear/module/ruinuo/xm-select.js"></script>
</head>
<body>

<div class="view_body"></div>
<script type="text/html" id="view_body_data">
    <form class="layui-form" action="">
        <div class="mainBox ruinuo_box {{= form_config.form_label}}">
            <div class="main-container layui-row layui-col-space10 label_con">
                <div class="design-box layui-col-xs12 layui-col-md12 name_box {{#  if(layui.engine_form.PowerField('name')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">授权名称</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="name" id="focus_2f77_1721533348174_26583" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.name}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 power_node_box {{#  if(layui.engine_form.PowerField('power_node')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">授权标识</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="power_node" id="focus_7858_1721533349429_79939" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.power_node}}" class="layui-input">
 <div class="layui-form-help"><i class="layui-icon layui-icon-tips"></i>填写格式：应用编码:控制器编码，编码唯一，不可重复</div>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 power_user_box {{#  if(layui.engine_form.PowerField('power_user')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">通用用户权限</label>
<div class="layui-input-block " data_tag="select" data_source="admin_user_list">
<div  name="power_user" id="focus_281c_1721533378740_71219" type="text" lay-tag="select"></div>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 power_role_box {{#  if(layui.engine_form.PowerField('power_role')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">通用角色权限</label>
<div class="layui-input-block " data_tag="select" data_source="admin_role">
<div  name="power_role" id="focus_2756_1721533379986_17225" type="text" lay-tag="select"></div>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 power_department_box {{#  if(layui.engine_form.PowerField('power_department')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">通用部门权限</label>
<div class="layui-input-block " data_tag="select" data_source="department_list">
<div  name="power_department" id="focus_2105_1721533381006_02246" type="text" lay-tag="select"></div>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md12 power_field_box {{#  if(layui.engine_form.PowerField('power_field')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label">权限字段</label>
<div class="layui-input-block " data_tag="jsontable" data_source="">
<textarea name="power_field" id="focus_7568_1721533388793_86483" class="layui-input" style="display: none"  lay-filter="json_filter">{{= d.detail.power_field}}</textarea>
<div class="table_7568_1721533388793_86483 f_table">
<table id="table_7568_1721533388793_86483" lay-filter="filter_7568_1721533388793_86483"></table>
</div>
</div>
</div>

            </div>
        </div>
        <div class="bottom">
            <div class="ruinuo-button-con">
                <button type="button" class="pear-btn pear-btn-primary" onclick="SendForm()">
                    <i class="layui-icon layui-icon-ok"></i>提交
                </button>
                <button type="reset" class="pear-btn">
                    <i class="layui-icon layui-icon-refresh"></i>重置
                </button>
            </div>
        </div>
    </form>
</script>
<script>

    function FormBind()
    {
        layui.engine_form.BindSelect('281c_1721533378740_71219','select','power_user','admin_user_list',1,);
layui.engine_form.BindSelect('2756_1721533379986_17225','select','power_role','admin_role',1,);
layui.engine_form.BindSelect('2105_1721533381006_02246','select','power_department','department_list',1,);
let tablepower_field={"col":"12","tag":"jsontable","cols":[{"field":"field","title":"权限字段","update":"input","required":1,"minWidth":160},{"field":"is_path","title":"允许上级查看","update":"switch","minWidth":160}],"help":"","field":"power_field","title":"权限字段","value":"","elem_id":"7568_1721533388793_86483","is_curd":"1","required":"2","hide_label":"2"};
layui.engine_form.BindJsonTable(tablepower_field);

    }
</script>
<script src="/static/js/admin/powertable/config.js?t={:time()}"></script>
<script src="/static/component/markdown/editor/editormd.min.js"></script>
<script src="/static/component/markdown/editor/marked.min.js"></script>
<script src="/static/js/admin/powertable/form.js?t={:time()}"></script>
<script src="/static/component/pear/module/jQuery.print.js"></script>
</body>
</html>